package com.warmheart.base.config;

import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@AutoConfigureAfter({ WhUploadConfig.class })
public class WhUploadConfiguration {
    @Bean
    public WhFileUploadService whFileUploadService(WhUploadConfig whUploadConfig) {
        return new WhFileUploadService() {

            @Override
            public WhUploadConfig config() {
                return whUploadConfig;
            }

        };
    }
}
